class Car:
    
    car_dict = {}
    def car_add(self,numstr="000000",mark="Beijing",color="red",rice="300000",speed="300"):
         self.car_dict[numstr]={"mark":mark,"color":color,"rice":rice,"speed":speed}
    
    def car_disp(self):
        for item in self.car_dict.items():
            print(item)
        
    def car_search(self,numstr):
        print(self.car_dict.get[numstr])
        

###############################################
car = Car()
while 1:
    get_continue = input('Do you input the car info?(y/n) >>>')
    get_continue = str.lower(get_continue)
    if (get_continue == "y"):
        numstr = input('PLS input Car numberID: >>>')
        mark = input('PLS input Car mark: >>>')
        color = input('PLS input Car color: >>>')
        rice = input('PLS input Car rice: >>>')
        speed = input('PLS input Car speed: >>>')
        car.car_add(numstr,mark,color,rice,speed)
        pass
    else:
        break
    
car.car_disp()


# 这里可以试试用两个完成
